package pattern.behavioral.iterator.simple;

/**
 * @author: chaoyang.ren  
 * @date:Jun 5, 2017  
 * @time:1:47:55 PM   
 * @email:chaoyang.ren@foxmail.com  
 * @version: 1.0
 */
public class Test {
	public static void main(String[] args) {
		String[] a = {"A","B","C","D","E"};
		Collection<String> strCollection = new MyCollection<String>(a);
		Iterator<String> iterator = strCollection.iterator();
		
		while(iterator.hasNext()){
			System.out.println(iterator.next());
		}
	}
}

